from flask import Flask, request
import json
app = Flask(__name__)

@app.route("/fapigw/air/provinces", methods=["GET"])
def get_env_json():
    city = request.args.get("city")
    response_dict = {
        "code": 1,
        "reason": "ok",
        "data": {
            "city": '北京',
            "tem": "20-30",
            "wind": "1"
        }
    }
    return json.dumps(response_dict, ensure_ascii=False)

if __name__ == '__main__':
    app.run(host="hadoop102")
